package bot;
import java.awt.EventQueue;

/**
 * @author papq
 * @version 0.1
 * The main class of the bot. Here bot controller is created.
 */
public class BotClient {
	public static String hostNr;
	public static int portNr;

	public static void main(String[] args) {
		if(args.length == 0)  {
			hostNr = "127.0.0.1";
			portNr = 4444;
		} else {
			hostNr = args[0];
			portNr = Integer.parseInt(args[1]);
		}
		
		EventQueue.invokeLater(new Runnable() {
			@Override
			public void run() {
				BotController botController = new BotController(hostNr, portNr);
			}
		});
	}
}